
<div class="loading_bg" style="z-index: 999" ng-click="onClose()">
</div>
<div class="new_target_windows">
    <div class="ntw_content">
        <div class="title">
            <h1>
                培训任务</h1>
            <div class="close" ng-click="onClose()">
                <span>+</span></div>
            <div class="clear">
            </div>
        </div>

        <!-- 培训人群 -->
        <ul class="ulzu">
            <li><i class="iconfont">&#xe652;</i>任务名称：{{comObj.name}}</li>
            <li><span><i class="iconfont">&#xe63a;</i>培训时间：{{ comObj.date_formate == '1' ? '固定周期' : (comObj.date_formate
                == '2' ? '固定天数' : '不限制') }}   </li>
            <li ng-if="comObj.date_formate == '1'"><span><i class="iconfont">&#xe63a;</i>周期：{{ comObj.start_Date}} - {{ comObj.end_Date}}   </li>
            <li ng-if="comObj.date_formate == '2'"><span><i class="iconfont">&#xe63a;</i>天数：{{ comObj.date_formate_time}}</li>
            
        </ul>
        <ul class="ulzu" ng-if="!comObj.is_public">
            <li>
                <span><i class="iconfont">&#xe6e7;</i>选择完成人群：</span> <span class="lirbtn"></span>
            </li>
              <!--用户-->
              <li ng-repeat="userItem in comObj.arrage.userList">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-user"></use></svg>【用户】{{userItem.user_Name}}</span>
                    <span class="lirbtn" ng-click="selStu(userItem,'1');$event.stopPropagation();">
                        <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:userItem.sel}" style="top: 10px;left: 0;">
                                <!--添加selected为选中样式-->
                                <span class="iconfont">&#xe67a;</span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div>
                    </span>   
            </li>
            <!--组织机构-->
            <li ng-repeat="orgItem in comObj.arrage.userOrganization">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-zuzhijiagou"></use></svg>【组织架构】{{orgItem.organization_Name}}</span>
                    <span class="lirbtn" ng-click="selStu(orgItem,'2');$event.stopPropagation();">
                        <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:orgItem.sel}" style="top: 10px;left: 0;">
                                <!--添加selected为选中样式-->
                                <span class="iconfont">&#xe67a;</span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div>
                    </span>  
            </li>
            <!--角色-->
            <li ng-repeat="roleItem in comObj.arrage.userRole">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-jiaose"></use></svg>【角色】{{roleItem.roles_Name}} </span>
                    <span class="lirbtn" ng-click="selStu(roleItem,'3');$event.stopPropagation();">
                        <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:roleItem.sel}" style="top: 10px;left: 0;">
                                <!--添加selected为选中样式-->
                                <span class="iconfont">&#xe67a;</span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div>
                    </span>  
            </li>
            <!--用户组-->
            <li ng-repeat="groupItem in comObj.arrage.userGroup">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-louyutubiaoyonghuzu"></use></svg>【用户组】{{groupItem.userGroup_Name}} </span>
                    <span class="lirbtn" ng-click="selStu(groupItem,'4');$event.stopPropagation();">
                        <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:groupItem.sel}" style="top: 10px;left: 0;">
                                <!--添加selected为选中样式-->
                                <span class="iconfont">&#xe67a;</span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div>
                    </span>  
            </li>
        </ul>
        <ul class="ulzu" ng-if="comObj.is_public">
            <li>
                <span><i class="iconfont">&#xe6e7;</i>选择完成人群：</span> <span class="lirbtn"></span>
            </li>
            <!--用户-->
            <li ng-repeat="userItem in stuData.UserList">
              <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-user"></use></svg>【用户】{{userItem.user_Name}}</span>
                  <span class="lirbtn" ng-click="delStuPub(userItem,'1');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>   
          </li>
          <!--组织机构-->
          <li ng-repeat="orgItem in stuData.userOrgList" ng-if="comObj.is_public">
              <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-zuzhijiagou"></use></svg>【组织架构】{{orgItem.organization_Name}}</span>
                  <span class="lirbtn" ng-click="delStuPub(orgItem,'2');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>  
          </li>
          <!--角色-->
          <li ng-repeat="roleItem in stuData.userRoleList" ng-if="comObj.is_public">
              <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-jiaose"></use></svg>【角色】{{roleItem.roles_Name}} </span>
                  <span class="lirbtn" ng-click="delStuPub(roleItem,'3');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>  
          </li>
          <!--用户组-->
          <li ng-repeat="groupItem in stuData.userGroupList" ng-if="comObj.is_public">
              <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-louyutubiaoyonghuzu"></use></svg>【用户组】{{groupItem.userGroup_Name}} </span>
                  <span class="lirbtn" ng-click="delStuPub(groupItem,'4');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>  
          </li>
          <!-- 添加人群 -->
          <li ng-if="comObj.is_public">
            <div class="btn add link" ng-click="selTaskStu($event)">
                <i class="iconfont">&#xe616;</i>选择人群</div>
            </li>
      </ul>

    </div>
    <div class="ntw_footer">

        <div class="new_curriculum_bottom_right">
            <div ng-if="isSaveBtn" class="btn">
                <btnloading isbtnload="isSaveBtn"></btnloading>
            </div>
            <div class="btn queding" style="width: 100px;"  ng-click="btnSave()" ng-if="!isSaveBtn">                
                <span class="ng-scope"><i class="iconfont">&#xe6ee;</i> 确定保存</span>
            </div>
        </div>
    </div>
     <!--人员选择器-->
     <selectormodal ng-if="stuData.ApiOpen" apidata="stuData"></selectormodal>
</div>
